<?php
$con = @mysql_connect("localhost","root","");
if (!$con)
{
	die('Could not connect: ' . mysql_error());
}

mysql_select_db("data", $con);

$result = mysql_query("SELECT * FROM homework_submit");

echo "<form action='Corrrect_upload.php' method='post'> 
	<table border='1' cellpadding='0' cellspacing='0'>
		<tr>
		<th>homework_list</th>
		<td>mark</td>
		</tr>";

while($row = mysql_fetch_array($result))
{
	echo "<tr>";
	echo "<td>" . $row['h_name'] . "</td>";
	echo "<td>	<input type='text' name='usermark' value='". $row['h_mark'] ."'/> </td>";
	echo "</tr>";
}
echo "</table>";
echo "<input type='submit'/>";
echo "</table>";

mysql_close($con);
?>